package com.example.orderminiappapi.dao;

import com.example.orderminiappapi.bean.Search;
import com.example.orderminiappapi.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SearchDao {
    List<Search> getHistorySearchList(User user);

    Search getIfHasSearched(Search search);

    int refreshSearchItem(Search search);

    int addSearchItem(Search search);
}
